package com.imfondof.mvc_mvp_mvvm.mvvm;

import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;

import android.os.Bundle;

import com.imfondof.mvc_mvp_mvvm.R;
import com.imfondof.mvc_mvp_mvvm.databinding.ActivityMvvmBinding;

public class MVVMActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityMvvmBinding dataBinding = DataBindingUtil.setContentView(this, R.layout.activity_mvvm);

        MVVMViewModel viewModel = new MVVMViewModel(getApplication());
        dataBinding.setViewModel(viewModel);

    }
}
